table of contents
BTRFS-INSPECT-INTE(8) | Btrfs Manual | BTRFS-INSPECT-INTE(8) |
NAME¶
btrfs-inspect-internal - query various internal information
SYNOPSIS¶
btrfs inspect-internal <subcommand> <args>
DESCRIPTION¶
This command group provides an interface to query internal information. The functionality ranges from a simple UI to an ioctl or a more complex query that assembles the result from several internal structures. The latter usually requires calls to privileged ioctls.
SUBCOMMAND¶
dump-super [options] <device> [device...]
Show btrfs superblock information stored on given devices in textual form. By default the first superblock is printed, more details about all copies or additional backup data can be printed.
Besides verifictaion of the filesystem signature, there are no other sanity checks. The superblock checksum status is reported, the device item and filesystem UUIDs are checked and reported.
Note
the meaning of option -s has changed in version 4.8 to be consistent with other tools to specify superblock copy rather the offset. The old way still works, but prints a warning. Please update your scripts to use --bytenr instead. The option -i has been deprecated.
-f|--full
-a|--all
-i <super>
--bytenr <bytenr>
If there are multiple options specified, only the last one applies.
-F|--force
-s|--super <bytenr>
specify which mirror to print, valid values are 0, 1 and 2 and the superblock must be present on the device with a valid signature, can be used together with --force
dump-tree [options] <device>
Dump tree structures from a given device in textual form, expand keys to human readable equivalents where possible. This is useful for analyzing filesystem state or inconsistencies and has a positive educational effect on understanding the internal filesystem structure.
Note
contains file names, consider that if you’re asked to send the dump for analysis. Does not contain file data.
-e|--extents
-d|--device
-r|--roots
-R|--backups
-u|--uuid
-b <block_num>
-t <tree_id>
The tree id name recognition rules:
inode-resolve [-v] <ino> <path>
resolve paths to all files with given inode number ino in a given subvolume at path, ie. all hardlinks
Options
-v
logical-resolve [-Pv] [-s <bufsize>] <logical> <path>
resolve paths to all files at given logical address in the linear filesystem space
Options
-P
-v
-s <bufsize>
min-dev-size [options] <path>
return the minimum size the device can be shrunk to, without performing any resize operation, this may be useful before executing the actual resize operation
Options
--id <id>
rootid <path>
Note
The result is undefined for the so-called empty subvolumes (identified by inode number 2), but such subvolume does not contain any files anyway
subvolid-resolve <subvolid> <path>
resolve the absolute path of a the subvolume id subvolid
tree-stats [options] <device>
Print sizes and statistics of trees.
Options
-b
EXIT STATUS¶
btrfs inspect-internal returns a zero exit status if it succeeds. Non zero is returned in case of failure.
AVAILABILITY¶
btrfs is part of btrfs-progs. Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for further details.
SEE ALSO¶
08/03/2017 | Btrfs v4.9.1 |